package com.yanzhen.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Integer id;
    private Integer deptId;//部门id
    private String username;
    private String password;
    private String realname;
    private String sex;//性别
    private String tel;
    private String email;
    private String avatar;//头像
    private String jobTitle;//职务名称
    private Integer status;//状态
    private Integer sort;//排序
    private Integer delFlag;//删除标示
    private Integer createBy;//创建人id
    private Date updateTime;//修改时间
    private Date create_time;//创建时间
    private String dname;//直接加一个属性 映射到部门的名称
    //角色的集合对象
    private List roleList;
}
